package com.wardrobe.mapper.slave.user;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by m1304 on 2018/8/6.
 */
@Component("userSlaveMapper")
public interface UserSlaveMapper {

    Map<String,Object> getUserId(@Param("password") String password, @Param("mobileNumber") String mobileNumber);

    List<Map<String,Object>> selectUserForMobile(String mobileNumber);

    Map<String,Object> selectUserByUserId(long userId);

    Map<String,Object> getUserByMobile(String mobileNumber);
}
